#include <stdio.h>

void main(){	
	/* members declaration */
	
	int number;
	double result = 0;
	int i; //index for iterator

	/* get data from user */

	printf("Enter an integer:\n");
	scanf("%d", &number);
	
	/* calculate data */
	
	for(i=1; i < number+1; i++){
		result += i / (double)(i+1);
	}

	/* print result */
	printf("The result is: %2.2lf\n", result);
}